//import 'package:flutter/material.dart';
//import 'package:provider/provider.dart';
//import 'package:quan_ni_dev/provider/appUserProvider.dart';
//
//
//class AppUserSelectType extends StatelessWidget {
//  @override
//  Widget build(BuildContext context) {
//    return Scaffold(
//      appBar: AppBar(
//        title: Text('选择分类'),
//      ),
//      body: Container(
//        padding: EdgeInsets.only(top: 0,left: 0,right: 10,bottom: 0),
//        child: Row(
//          children: <Widget>[
//            LeftTypeName(),
//            RightTypeContent()
//          ],
//        ),
//      ),
//    );
//  }
//}
//
//
//
//
//class LeftTypeName extends StatelessWidget {
//  @override
//  Widget build(BuildContext context) {
//    return Container(
//      width: 100,
//      decoration: BoxDecoration(
//          border: Border(
//              right: BorderSide(width: 1,color: Colors.grey)
//          )
//      ),
//      child: Consumer<AppUserProvide>(
//        builder: (context,data,_) {
//          return _leftContainer(context);
//        },
//      ),
//    );
//  }
//
//  Widget _leftContainer (context){
//    return Container(
//      width: 100,
//      child: ListView.builder(
//          itemCount: Provider.of<AppUserProvide>(context,listen: false).tempData.length,
//          itemBuilder: (context,index) {
//            return _itemType(context,index);
//          }
//      ),
//    );
//  }
//
//  Widget _itemType (context,index) {
//    return InkWell(
//      child: Container(
//        width: 100,
//        alignment: Alignment.center,
//        padding: EdgeInsets.only(top: 0,bottom: 15),
//        margin: EdgeInsets.only(top: 15),
//        decoration: BoxDecoration(
//          border: Border(
//              bottom: BorderSide(width: 1,color: Colors.grey)
//          ),
////        color: Colors.grey
//        ),
//        child: Text(Provider.of<AppUserProvide>(context,listen: false).tempData[index]['name']),
//      ),
//      onTap: () {
//        Provider.of<AppUserProvide>(context,listen: false).getRightTypeData(Provider.of<AppUserProvide>(context,listen: false).tempData[index]['content']);
//      },
//    );
//  }
//}
//
//class RightTypeContent extends StatelessWidget {
//
//  var selectData = [];
//  var formData = {
//    'accountStatu': '',
//    'currentPage': '',
//    'infoStatu': '',
//    'nickName': '',
//    'phone': '',
//    'sex': '',
//
//  };
//
//  @override
//  Widget build(BuildContext context) {
//    return Container(
//        width: 100,
//        margin: EdgeInsets.only(left: 75,top: 10),
//        alignment: Alignment.center,
//        child: Container(
//          child: Consumer<AppUserProvide>(
//            builder: (context,data,_){
//              return ListView.builder(
//                  itemCount: Provider.of<AppUserProvide>(context,listen: false).typeContentText.length,
//                  itemBuilder: (context,index) {
//                    return _itemRight(context,index);
//                  }
//              );
//            },
//          ),
//        )
//    );
//  }
//
//  Widget _itemRight(context,index) {
//    return InkWell(
//      child: Container(
//        alignment: Alignment.center,
//        padding: EdgeInsets.only(top: 10,bottom: 10),
//        decoration: BoxDecoration(
//            border: Border.all(width: 1,color: Provider.of<AppUserProvide>(context,listen: false).typeContentText[index]['isSelect']?Colors.purpleAccent:Colors.redAccent),
//            borderRadius: BorderRadius.all(Radius.circular(5))
//        ),
//        margin: EdgeInsets.only(bottom: 10),
//        child: Text(
//          Provider.of<AppUserProvide>(context,listen: false).typeContentText[index]['typeText'],
//        ),
//      ),
//      onTap: () {
//        Provider.of<AppUserProvide>(context,listen: false).changeSelect(Provider.of<AppUserProvide>(context,listen: false).typeContentText[index]['id']);
//        print('${Provider.of<AppUserProvide>(context,listen: false).typeContentText[index]['id']}');
//      },
//    );
//
//  }
//}
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
////class RightTypeContent extends StatefulWidget {
////
////  @override
////  _RightTypeContentState createState() => _RightTypeContentState();
////}
////class _RightTypeContentState extends State<RightTypeContent> {
////  @override
////  Widget build(BuildContext context) {
////    return Container(
////        width: 100,
////        child: Container(
////          child: Consumer<AppUserProvide>(
////            builder: (context,data,_){
////              return ListView.builder(
////                  itemCount: Provider.of<AppUserProvide>(context,listen: false).typeContentText.length,
////                  itemBuilder: (context,index) {
////                    return _itemRight(index);
////                  }
////              );
////            },
////          ),
////        )
////    );
////  }
////
////  Widget _itemRight(index) {
////    return Container(
////      width: 200,
////      decoration: BoxDecoration(
////        border: Border.all(width: 1,color: Colors.purpleAccent),
////      ),
////      margin: EdgeInsets.only(bottom: 10),
////      child: Text(
////        Provider.of<AppUserProvide>(context,listen: false).typeContentText[index]['typeText'],
////      ),
////    );
////  }
////}
//
////class LeftTypeName extends StatefulWidget {
////  @override
////  _LeftTypeNameState createState() => _LeftTypeNameState();
////}
////class _LeftTypeNameState extends State<LeftTypeName> {
////  @override
////  Widget build(BuildContext context) {
////    return Container(
////      width: 100,
////      decoration: BoxDecoration(
////          border: Border(
////              right: BorderSide(width: 1,color: Colors.grey)
////          )
////      ),
////      child: Consumer<AppUserProvide>(
////        builder: (context,data,_) {
////          return _leftContainer();
////        },
////      ),
////    );
////  }
////
////  Widget _leftContainer (){
////    return Container(
////      width: 100,
////      child: ListView.builder(
////          itemCount: Provider.of<AppUserProvide>(context,listen: false).tempData.length,
////          itemBuilder: (context,index) {
////            return _itemType(index);
////          }
////      ),
////    );
////  }
////
////  Widget _itemType (index) {
////    return InkWell(
////      child: Container(
////        width: 100,
////        alignment: Alignment.center,
////        padding: EdgeInsets.only(top: 0,bottom: 15),
////        margin: EdgeInsets.only(top: 15),
////        decoration: BoxDecoration(
////          border: Border(
////              bottom: BorderSide(width: 1,color: Colors.grey)
////          ),
//////        color: Colors.grey
////        ),
////        child: Text(Provider.of<AppUserProvide>(context,listen: false).tempData[index]['name']),
////      ),
////      onTap: () {
////        Provider.of<AppUserProvide>(context,listen: false).getRightTypeData(Provider.of<AppUserProvide>(context,listen: false).tempData[index]['content']);
////      },
////    );
////  }
////}
////class AppUserSelectType extends StatefulWidget {
////  @override
////  _AppUserSelectTypeState createState() => _AppUserSelectTypeState();
////}
////class _AppUserSelectTypeState extends State<AppUserSelectType> {
////
////  @override
////  Widget build(BuildContext context) {
////    return Scaffold(
////      appBar: AppBar(
////        title: Text('选择分类'),
////      ),
////      body: Container(
////        padding: EdgeInsets.only(top: 0,left: 0,right: 10,bottom: 0),
////        child: Row(
////          children: <Widget>[
////            LeftTypeName(),
////            RightTypeContent()
////          ],
////        ),
////      ),
////    );
////  }
////}
